package fishcms

class Category {

    String name

    static constraints = {
        name unique: true, nullable: false, blank: false
    }

    public List<Post> findAllArticle(Map params) {
        return Post.findAllByCategory(this, params)
    }

}
